package com.cinc.mdm.modules.material.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException;

/**
 * @Description: 工厂视图
 * @Author: jeecg-boot
 * @Date:   2021-10-13
 * @Version: V1.0
 */
@ApiModel(value="mdm_material_factory_detail对象", description="工厂视图")
@Data
@TableName("mdm_material_factory_detail")
public class MdmMaterialFactoryDetail implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**物料ID*/
    @ApiModelProperty(value = "物料ID")
    private String materialId;
	/**MRP类型*/
	@Excel(name = "MRP类型", width = 15, dicCode = "mdm_mrp_type")
    @ApiModelProperty(value = "MRP类型")
    private String mrpType;
	/**采购类型*/
	@Excel(name = "采购类型", width = 15, dicCode = "mdm_buy_type")
    @ApiModelProperty(value = "采购类型")
    private String buyType;
	/**生产天数*/
	@Excel(name = "生产天数", width = 15)
    @ApiModelProperty(value = "生产天数")
    private Integer productionDays;
	/**采购天数*/
	@Excel(name = "采购天数", width = 15)
    @ApiModelProperty(value = "采购天数")
    private Integer buyDays;
	/**按单模式*/
	@Excel(name = "按单模式", width = 15, dicCode = "yn")
    @ApiModelProperty(value = "按单模式")
    private String orderFlag;
	/**库存类型*/
	@Excel(name = "库存类型", width = 15, dicCode = "mdm_stock_type")
    @ApiModelProperty(value = "库存类型")
    private String stockType;
	/**批次管理*/
	@Excel(name = "批次管理", width = 15, dicCode = "yn")
    @ApiModelProperty(value = "批次管理")
    private String batchFlag;
	/**序列号管理*/
	@Excel(name = "序列号管理", width = 15, dicCode = "yn")
    @ApiModelProperty(value = "序列号管理")
    private String seqFlag;
	/**重订货点*/
	@Excel(name = "重订货点", width = 15)
    @ApiModelProperty(value = "重订货点")
    private String reorderPlace;
	/**最大库存*/
	@Excel(name = "最大库存", width = 15)
    @ApiModelProperty(value = "最大库存")
    private java.math.BigDecimal maxStock;
	/**采购组*/
	@Excel(name = "采购组", width = 15, dicCode = "mdm_buy_group")
    @ApiModelProperty(value = "采购组")
    private String buyGroup;
	/**MRP控制员*/
	@Excel(name = "MRP控制员", width = 15, dicCode = "mdm_mrp_manager")
    @ApiModelProperty(value = "MRP控制员")
    private String mrpManager;
	/**生产管理员*/
	@Excel(name = "生产管理员", width = 15, dicCode = "mdm_mrp_manager")
    @ApiModelProperty(value = "生产管理员")
    private String productionManager;
	/**固定仓位*/
	@Excel(name = "固定仓位", width = 15)
    @ApiModelProperty(value = "固定仓位")
    private String stockPlace;
	/**工厂*/
	@Excel(name = "工厂", width = 15, dictTable = "mdm_factory", dicText = "factory_name", dicCode = "id")
    @ApiModelProperty(value = "工厂")
    private String factoryId;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
}
